﻿using System;
using System.Collections.Generic;

namespace T8
{
    class Program
    {
        static void Main(string[] args)
        {
            //Dictionary<String, int> dic = new Dictionary<string, int>();

            //String str = "If you do NOT have a User ID, click I was not provided a User ID";
            //str = str.ToLower();
            //Console.WriteLine("转小写：" + str);

            //foreach (String s in str.Split(" "))
            //{
            //    String key = s.Trim(',');

            //    if (dic.ContainsKey(key))
            //    {
            //        dic[key]++;
            //    }
            //    else
            //    {
            //        dic.Add(key, 1);
            //    }
            //}

            //foreach (KeyValuePair<String,int> item in dic)
            //{
            //    Console.WriteLine($"{item.Key}:{item.Value}");
            //}

            Dictionary<String, Action<String>> dic = new Dictionary<string, Action<String>>();
            dic.Add("/news", (name) => 
            {
                Console.WriteLine("news");
            });

            dic.Add("/profile", (name) =>
            {
                Console.WriteLine("简历");
            });
        }
    }
}
